//引入组件及接口

import {defineStore} from "pinia";
import type {ReportDataModel} from "@/api/mock/model/data"
import { reqGetReportData } from "@/api/mock";
//创建实例对象
export const useReportDataStore = defineStore({
    id:'reportData',//唯一标识
    state(){
        return {
            reportData:{} as ReportDataModel
        }
    },
    actions:{
        async getReportData(){
            const result = await reqGetReportData()
            this.reportData = result
        }
    }
})